package com.fh.mapper.loan;

import com.fh.model.loan.UserContactsInfo;
import com.fh.model.loan.UserContactsInfoExample;
import java.util.List;
import java.util.Map;


public interface UserContactsInfoMapper {

    int insert(UserContactsInfo record);

    int batchInsert( List<UserContactsInfo> batchInsertList);

    List<UserContactsInfo> selectByExample(UserContactsInfoExample example);

    List<UserContactsInfo> findAllContactsInfoListByUserId(Map<String,Object> map);

    int updateByPrimaryKey(UserContactsInfo record);
    Map<String,Object> findContactsInfoById(Map<String,Object> map);
    Map<String,Object> findContactsInfoByOldId(Map<String,Object> map);
    int  updateById(Map<String,Object> mao);

    UserContactsInfo findContactsInfoByIdAndUid(Map<String,Object> map);
    /**
     * 查询所有的原有联系人
     */
    List<UserContactsInfo> findOldContacts(Map<String,Object> map);
    /**
     * 修改原有联系人状态
     * 
     * @param info
     * @return
     */
	int updateOldContract(UserContactsInfo info);
    
}